import base from './base'

export default class News extends base {
    /**
   * 创建方案
   */
    static async create(options) {
        const url = `${this.baseUrl}/adm/sale_project/create`
        return this.post(url, options)
    }
    /**
    * 修改方案
    */
    static async update(options) {
        const url = `${this.baseUrl}/adm/sale_project/update`
        return this.post(url, options)
    }
    /**
     * 方案清单
     */
    static async getList(options) {
        const url = `${this.baseUrl}/adm/sale_project/list`
        return this.post(url, options)
    }
    /**
     * 销售方案详情
     */
    static async saleDetail(options) {
        const url = `${this.baseUrl}/adm/sale_project/detail`
        return this.get(url, options)
    }

    /**
         * 销售方案详情
         */
    static async projectItem(options) {
        const url = `${this.baseUrl}/adm/sale_project_item/list`
        return this.get(url, options)
    }

    /**
         * 设置单元排序
         */
    static async setOb(options) {
        const url = `${this.baseUrl}/adm/sale_project_item/setOb`
        return this.post(url, options)
    }

}
